﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmartSpace.Core;
using System.Data.Entity;

namespace SmartSpace.Cwt
{
	public class CwtFactory: ICwtFactory
	{
        private string ConnectionString { get; set; }

        public CwtFactory(string connectionString)
        {
            ConnectionString = connectionString;
        }

        CwtContext ICwtFactory.Get()
        {
            CwtDbContext dbContext = new CwtDbContext(ConnectionString);
            CwtContext context = new CwtContext(dbContext);
            return context;
        }
    }
}
